package com.xuexi.di1;

//逻辑运算符：
class TestLogic{
	public static void main(String[] args){
		boolean a = true;
		boolean b = false;
		System.out.println(a & b);
		System.out.println(a && b);
		System.out.println(a | b);
		System.out.println(a || b);

		int i1=10;
		if(b & (i1++) >0){
			System.out.println("11");
		}else{
			System.out.println("22");
		}
		System.out.println(i1);
		int i2=10;
		if(b && (i2++) >0){
			System.out.println("11");
		}else{
			System.out.println("22");
		}
		System.out.println(i2);
	}
}